<%@ page contentType="text/html; charset=UTF-8" session="false"%>
<%@ include file="/WEB-INF/jspf/import.jspf"%>

<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="pagerForm" name="searchForm" method="get">
        <input type="hidden" name="pageNum" value="${pager.pageNo}" />
        <input type="hidden" name="pageSize" value="${pager.pageSize}" />
        <input type="hidden" name="orderField" value="${orderField}" />
        <input type="hidden" name="orderDirection" value="${orderDirection}" />
        <div class="searchBar">
            <table class="searchContent">
                <tbody>
                    <tr>
                        <td><label>升级领取时间：</label>
                            <input type="text" name="begin" datefmt="yyyy-MM-dd 00:00:00" value="${param.begin}" class="date" readonly="true"> 至
                            <input type="text" name="end" datefmt="yyyy-MM-dd 23:59:59" value="${param.end}" class="date" readonly="true">
                        </td>
                        <td>
                            初始星级：
                            <select class="" name="startLevel">
                                <option value="-1">全部</option>
                                <c:forEach var="e" items="${levels}">
                                    <option value="${e.levelId}"<c:if test="${e.levelId==startLevel}">selected</c:if> >${e.levelName}</option>
                                </c:forEach>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td><label>品牌：</label><input type="text" name="brand" value="${param.brand}" class="textInput"></td>
                        <td><label>车系：</label><input type="text" name="series" value="${param.series}" class="textInput"></td>
                        <td><label>地区：</label><input type="text" name="area" value="${param.area}" class="textInput"></td>
                        <td>
                            主题：
                            <select class="" name="theme">
                                <option value="0">全部</option>
                                <c:forEach var="e" items="${themes}">
                                    <option value="${e.themeId}" <c:if test="${e.themeId==theme}">selected</c:if>>${e.themeName}</option>
                                </c:forEach>
                            </select>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" style="width: 100%" layoutH="135">
        <thead>
            <tr>
                <th>车友会ID</th>
                <th>车友会名称</th>
                <th>个性域名</th>
                <th>主题</th>
                <th>地区</th>
                <th>车系</th>
                <th>初始星级</th>
                <th orderField="maxLevel" class="${orderDirection}" >等级</th>
                <th orderField="status" >排名</th>
                <th orderField="update_time" >领取时间</th>
            </tr>
        </thead>
        <tbody>
            <c:forEach var="e" items="${pager.resultList}">
                <tr>
                    <td>${e.clubId}</td>
                    <td>${e.clubName}</td>
                    <td>${e.clubUrl}</td>
                    <td>${e.theme}</td>
                    <td>${e.province} ${e.city}</td>
                    <td>${e.brand} ${e.series}</td>
                    <td>${e.startLevel}</td>
                    <td>${e.maxLevel}</td>
                    <td>${e.rank}</td>
                    <td><fmt:formatDate value="${e.acceptDate}" pattern="yyyy-MM-dd"/></td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
</div>
<div class="panelBar">
    <div class="pages">
        <span>共 ${pager.total} 条</span>
    </div>
    <div class="pagination" targetType="navTab" totalCount="${pager.total}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.pageNo}"></div>
</div>
